---
title: Text Reveal
date: 2024-04-08
description: Fade in text as you scroll down the page.
author: dillionverma
published: true
video: https://cdn.magicui.design/text-reveal.mp4
---

<ComponentPreview name="text-reveal-demo" />

## Installation

<Tabs defaultValue="cli">

<TabsList>
  <TabsTrigger value="cli">CLI</TabsTrigger>
  <TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>
<TabsContent value="cli">

```bash
npx shadcn@latest add @magicui/text-reveal
```

</TabsContent>

<TabsContent value="manual">

<Steps>

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="text-reveal" />

<Step>Update the import paths to match your project setup.</Step>

</Steps>

</TabsContent>

</Tabs>

## Usage

```tsx showLineNumbers
import { TextReveal } from "@/components/ui/text-reveal"
```

```tsx showLineNumbers
<TextReveal>Magic UI will change the way you design.</TextReveal>
```
